import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import "@/assets/icon/bank/iconfont";
import "@/assets/icon/common/iconfont/iconfont";
import "@/assets/icon/common/iconfont/iconfont.css";

import "view-ui-plus/dist/styles/viewuiplus.css";
import ViewUIPlus from "view-ui-plus";

import 'vue-json-pretty/lib/styles.css';

import Baitu from "baitu";

import VueLazyLoad from 'vue-lazyload'

import simpleUtils from "@/utils/simpleUtils";

import globalComponent from "@/globalComponent";

import globalMixin from "@/mixins/globalMixin";
import {iconPlugin} from "@/assets/icon";

const app = createApp(App);

for (const componentItem in globalComponent) {
    app.component(componentItem, globalComponent[componentItem])
}

app.config.globalProperties.simpleUtils = simpleUtils;
app.config.globalProperties.baitu = Baitu;

app.use(iconPlugin).use(VueLazyLoad).use(ViewUIPlus).use(globalMixin).use(store).use(router).mount('#app')
